home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / MISC / MPSR-RES.OUR
Text File  |  1992-05-01  |  1KB  |  30 lines

  1. In article <l00fc9INN7up@muleshoe.cs.utexas.edu>, kseah@cs.utexas.edu (Kenneth
  2. Cheng-Lim Seah) writes:
  3. > I've noticed that MPW and Think C use the MPSR resource (if I remember...
  4. > I don't have resedit handy now and I think that's the name of the resource) to
  5. > store the Marks placed in the text file.  if you have the format and can post
  6. > it, please do so...
  7.  
  8.  
  9. #define resourceType    'MPSR'
  10. #define editMarkID       1007
  11.  
  12. struct MarkElement {
  13.     int             start;                  // start position of mark
  14.     int             end;                    // end position
  15.     unsigned char   charCount;              // number of chars in mark name
  16.     char            name[1];                // first char of mark name
  17. };                                          // (name is null terminated)
  18.  
  19.  
  20. struct MarkRsrc {
  21.     short count;                            // number of marks in the resource
  22.     MarkElement mark[0];                    // zero or more mark elements
  23. };
  24.  
  25. --
  26. Keith Rollin
  27. Phantom Programmer
  28. Taligent, Inc.
  29.